package com.ln.adoms.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.ln.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "department_type")
public class DepartmentType extends BaseEntity {

	@NotBlank(message = "部门类型名称不能为空")
	@Length(max = 80, message = "字数太长")
	private String name; // 部门类型 分为总代理、省代理、门店
	private String memo; // 备注

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}